package cn.knight.system.mapper;

import cn.knight.system.domain.Role;
import cn.knight.basic.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author winnie
 * @since 2022-07-13
 */
public interface RoleMapper extends BaseMapper<Role> {

    void removeRoleMenu(Long roleId);

    void removeRolepermission(Long roleId);

    void saveRoleMenu(@Param("rId") Long id, @Param("ids") List<Long> menus);

    void saveRolepermission(@Param("rId") Long id, @Param("ids") List<Long> permissions);

    List<Role> loadByEmployeeId(Long id);
}
